﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<cludg.Web.Core.ViewModels.SecurityInfo>" %>

<%@ Import Namespace="cludg.Web.Core.RenderHelpers" %>

<% if (Model.IsAnonymouse)
   { %>
   <div class="profile guest">
	  Аноним, <%: Html.ActionLink("войди", "Login", "Account", null, null) %>
	 или <%: Html.ActionLink("зарегистрируйся", "Register", "Account", null, new { @class="reg" })%>!
   </div>
   <%}
   else
   { %>
   <div class="profile user">
		<%
			if (!String.IsNullOrEmpty(Model.CurrentUser.User.SmallAvatar))
			{ %>
					<%: Html.RenderImage(Model.CurrentUser.User.SmallAvatar, "avatar")%>
			<% }
		%>
		Hello, <%: Model.CurrentUser.User.DisplayName %> :-)
		<br/> <%: Html.ActionLink("Профиль", "EditPersonalInfo", "Account", null, new { @class="openprofile" }) %>
		<%: Html.ActionLink("Выйти", "Logout", "Account", null, null) %>
   </div>
   <%} %>
